package com.zhn.util;

import com.zhn.pojo.Product;

public class LengthCheckProcessor implements Processor{
    @Override
    public boolean processor(Product request, ProcessorChain chain) {
        Integer length = request.getLength();
        if(length < 100 && length > 50){
            System.out.println("产品长度检验通过");
            return chain.process(request,chain);
        }
        System.out.println("长度未通过");
        return false;
    }
}
